home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -screenplay- / utilities / hd_installers / slightlymagic / install-slightlymagic next >
Text File  |  1997-11-05  |  1KB  |  72 lines

  1. (set #CI_unit 0)
  2. (set #CI_drive ("DF%ld:" #CI_unit))
  3.  
  4.  
  5. ;----------------------------
  6.  
  7. ;try to figure out a place where the user usually installs his games
  8. (if (exists "Games:" (noreq) )
  9.     (set @default-dest "Games:")
  10.     (if (exists "SYS:Games" (noreq) )
  11.         (set @default-dest "SYS:Games")
  12.         (if (exists "Work:Games" (noreq) )
  13.             (set @default-dest "Work:Games")
  14.             (if (exists "JEUX:" (noreq) )
  15.                (set @default-dest "JEUX:")
  16.                (set @default-dest "SYS:")
  17.             )
  18.         )
  19.     )
  20. )
  21.  
  22.  
  23. (set @default-dest
  24. (askdir
  25.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  26.     (help @askdir-help)
  27.     (default @default-dest)
  28.     (disk)
  29. )
  30. )
  31.  
  32. (set #dest (tackon @default-dest @app-name))
  33.  
  34.  
  35. (makedir #dest
  36.     (help @makedir-help)
  37.     (infos)
  38. )
  39.  
  40. ;----------------------------
  41. (copyfiles
  42.     (help @copyfiles-help)
  43.     (source "SlightlyMagicHD")
  44.     (dest #dest)
  45. )
  46. (copyfiles
  47.     (help @copyfiles-help)
  48.     (source "SlightlyMagicHD.info")
  49.     (dest #dest)
  50. )
  51.  
  52. (copyfiles
  53.     (help @copyfiles-help)
  54.     (source "SlightlyMagicHD.readme.info")
  55.     (dest #dest)
  56. )
  57.  
  58. (copyfiles
  59.     (help @copyfiles-help)
  60.     (source "SlightlyMagicHD.readme")
  61.     (dest #dest)
  62. )
  63. (message ("\nInsert %s into drive %s !" @app-name #CI_drive))
  64.     (if
  65.         (= 0 (run ("copy df%ld: to \"%s\" all " #CI_unit #dest )))
  66.         ("")
  67.         (abort "\"\" must be in your PATH !")
  68.     )
  69.  
  70. (exit)
  71.  
  72.